<template>
  <thead>
    <tr>
      <th><input type="checkbox" @click="setAllCheck" :checked="allCheck"/> <span>全选</span></th>
      <th>名称</th>
      <th>价格</th>
      <th>数量</th>
      <th>总价</th>
      <th>操作</th>
    </tr>
  </thead>
</template>

<script>
import { mapGetters, mapMutations } from 'vuex'
export default {
  data () {
    return {}
  },
  computed: {
    ...mapGetters(['allCheck'])
  },
  created () {},

  methods: {
    ...mapMutations(['setallcheck']),
    setAllCheck () {
      this.setallcheck(!this.allCheck)
    }
  }
}
</script>

<style scoped lang="less"></style>
